broadway: Use correct type in assignment
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 21 Dec 2017 18:42:26 +0000 (18:42 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 21 Dec 2017 18:42:26 +0000 (18:42 +0000)
The new type propagation for g_object_ref() is raising a compiler
warning for an assignment with a different type.

gdk/broadway/broadway-server.c

index c3e0b34c419c28a100d163b7d004a323e9ffba6b..951c7035c11a505bef456507782ec9afadccc76a 100644 (file)
@@ -1289,7 +1289,7 @@ handle_incoming_connection (GSocketService    *service,
     }
   else
     {
-      request->connection = g_object_ref (connection);
+      request->connection = G_IO_STREAM (g_object_ref (connection));
     }
 
   in = g_io_stream_get_input_stream (request->connection);